package questionanswer;

import java.io.Serializable;

public class OneAnswer implements Serializable, Answer {
    private String keyAnswer;

    public OneAnswer(String answers) {
        this.keyAnswer = answers;
    }

    public OneAnswer(OneAnswer answer) {
        this.keyAnswer = answer.keyAnswer;
    }

    public void shuffleAnswers() {
        //NOP
    }

    @Override
    public boolean isCorrect(String userAnswer) {
        return userAnswer.equals(keyAnswer);
    }

    @Override
    public String toString() {
        return "";
    }
}
